<script lang="ts" setup>
  import { defineProps, ref, watch, defineEmits } from "vue"
  import { getArea } from "@/api/common"

  const props = defineProps(['type']);

  const getClass = () => {
    if(props.type == 'success') {

    } else if(props.type == 'warning') {

    }
  }
  const getPointClass = () => {
    if(props.type == 'success') {

    } else if(props.type == 'warning') {

    }
  }
</script>

<template>
  <div :class="props.type">
    <span class="setStatusSpan">
      <span class="setStatusSpanMain"><slot /></span>
    </span>
  </div>
</template>

<style lang="scss" scoped>
  .setStatusSpanMain{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left:15px;
  }

  .setStatusSpan::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
  }

  .primary .setStatusSpan::before{
    background-color: #55aaff;
  }

  .success .setStatusSpan::before{
    background-color: #2ba471;
  }

  .warning .setStatusSpan::before{
    background-color: #e37318;
  }

  .danger .setStatusSpan::before{
    background-color: #d54941;
  }

  .info .setStatusSpan::before{
    background-color: #8a8a8a;
  }

  .primary{
    color: #55aaff;
  }

  .success{
    color: #2ba471;
  }

  .warning{
    color: #e37318;
  }

  .info{
    color: #8a8a8a;
  }

</style>
